package com.newly.center.auth.api;

import com.newly.api.auth.feign.AuthClient;
import com.newly.common.base.constants.CodeConstant;
import com.newly.common.base.constants.UriConstant;
import com.newly.common.base.entity.R;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gjm guan
 * @date 2021/8/19 14:07
 * @desc
 */
@RestController
@RequestMapping(UriConstant.NEWLY_AUTH)
public class AuthApi implements AuthClient {

    @Override
    public R parseToken(Authentication authentication) {
        return R.ok(CodeConstant.SUCCESS, authentication, "解析token返回数据!");
    }
}
